﻿import java.util.Scanner;

public class L {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入第一个操作数：");
		int num1 = input.nextInt();
		System.out.println("请输入第二个操作数：");
		if(input.hasNextInt()==true){
		int num2 = input.nextInt();
		System.out.println("请选择运算符(1.+/2.-/3.*/4./)：");
		int choose = input.nextInt();
		if(choose==1){
			System.out.println(num1+num2);
		}else if(choose==2){
			System.out.println(num1-num2);
		}else if(choose==3){
			System.out.println(num1*num2);
		}else{
			System.out.println(num1/num2);
		}
		}else{
			System.out.println("输入错误！请重新输入！");
		}
	}

}